import request from '@/utils/request'

// 查询系统文本配置列表
export function listConfig(query) {
  return request({
    url: '/com/textConfig/list',
    method: 'get',
    params: query
  })
}
// 查询系统文本配置列表
export function listConfigLb(query) {
  return request({
    url: '/com/textConfig/listlb',
    method: 'get',
    params: query
  })
}
// 查询系统文本配置详细
export function getConfig(textConfigId) {
  return request({
    url: '/com/textConfig/' + textConfigId,
    method: 'get'
  })
}

// 新增系统文本配置
export function addConfig(data) {
  return request({
    url: '/com/textConfig',
    method: 'post',
    data: data
  })
}

// 修改系统文本配置
export function updateConfig(data) {
  return request({
    url: '/com/textConfig',
    method: 'put',
    data: data
  })
}

// 删除系统文本配置
export function delConfig(textConfigId) {
  return request({
    url: '/com/textConfig/' + textConfigId,
    method: 'delete'
  })
}

// 导出系统文本配置
export function exportConfig(query) {
  return request({
    url: '/com/textConfig/export',
    method: 'get',
    params: query
  })
}
